package com.spdb.oa.type;

import java.util.List;
import java.util.Map;

public class WFForm {
	public String processId;
	public String instanceId;
	public String distributionId;
	public String title;
	public String modelAlias;
	public String modelName;
	public String formName;
	public String currentStepDisplayName;
	public WFFormUser previousStepUser;
	public String previousStepOpin;
	
	/**
	 * ID -> WFFormElement
	 */
	public Map<String, WFFormElement> elements;

	public WFForm(String processId, String instanceId, String distributionId, String title, String modelAlias,
			String modelName, String formName, String currentStepDisplayName, WFFormUser previousStepUser,
			String previousStepOpin, Map<String, WFFormElement> elements) {
		super();
		this.processId = processId;
		this.instanceId = instanceId;
		this.distributionId = distributionId;
		this.title = title;
		this.modelAlias = modelAlias;
		this.modelName = modelName;
		this.formName = formName;
		this.currentStepDisplayName = currentStepDisplayName;
		this.previousStepUser = previousStepUser;
		this.previousStepOpin = previousStepOpin;
		this.elements = elements;
	}

	@Override
	public String toString() {
		return "WFForm [processId=" + processId + ", instanceId=" + instanceId + ", distributionId=" + distributionId
				+ ", title=" + title + ", modelAlias=" + modelAlias + ", modelName=" + modelName + ", formName="
				+ formName + ", currentStepDisplayName=" + currentStepDisplayName + ", previousStepUser="
				+ previousStepUser + ", previousStepOpin=" + previousStepOpin + ", elements=" + elements + "]";
	}
	
	
}
